interface a{
    a1:string,
    a2?:number
};
function g(arg:a){
    return arg.a1;
}
document.body.innerHTML = g({a1:"a1"});